<%@page contentType="application/vnd.google-earth.kml+xml"%><%@page pageEncoding="UTF-8"%><?xml version="1.0" encoding="UTF-8"?>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="/WEB-INF/taglib/wms2kml" prefix="wms2kml"%>
<%-- Creates the top-level KML to wrap the WMS

     Arguments passed in to this JSP:
     capabilities: WMSCapabilities object representing the root of the Capabilities document
     baseURL: URL to use as a base for future requests back to this server
     layersToInclude: comma-separated list of layers to include in the KML --%>
<kml xmlns="http://earth.google.com/kml/2.2"
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     xsi:schemaLocation="http://earth.google.com/kml/2.2 http://code.google.com/apis/kml/schema/kml22beta.xsd">
    <Document>
        <name>${capabilities.serverTitle}</name>
        <description>${capabilities.serverDescription}</description><%-- Generated by...  Contact details... --%>
        <%-- TODO: check GetMap formats and CRS/SRS, max width --%>
        <%-- Use a custom tag to express Layers as a folder hierarchy.  We need to do 
             this to handle recursion. --%>
        <wms2kml:layer capabilities="${capabilities}" layer="${capabilities.rootLayer}" baseURL="${baseURL}"/>
    </Document>
</kml>